#include"btools.h"
int main()
{
        int a=17,c;

        printf("~%d=%d\n",a,c=~a);
        BinaryPrint(a);
        puts("~---------------------------------------------");
        BinaryPrint(c);

        printf("%d>>3=%d\n",a,c=a>>3);
        BinaryPrint(a);
        puts(">>3---------------------------------------------");
        BinaryPrint(c);

        printf("%d<<3=%d\n",a,c=a<<3);
        BinaryPrint(a);
        puts("<<3---------------------------------------------");
        BinaryPrint(c);
        return 0;
}
